package com.newtouch.avmarketing.order.service;

import com.newtouch.avmarketing.order.entity.vo.UserVo;
import com.newtouch.avmarketing.order.repo.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserRepo userRepo;

    @Override
    public List<UserVo> userVo(Integer id) {
        return userRepo.findAllByHQL(id);
    }
}
